CC=gcc
CFLAGS=-g -c

all:server client

server:server.o server_api.o
	$(CC) $^ -o $@  -lsqlite3 -lpthread

client:client.o admin_API.o public.h
	$(CC) $^ -o $@

%*.o:%*.c
	$(CC) $(CFLAGS) $< -o $@

.PHONY:clean

clean:
	$(RM) a.out server client *.o
